From: Ray Strode Date: Mon, 6 Oct 2014 20:38:03 +0000 (-0400) Subject: screenShield: focus login screen after lifting shield X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2046 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1d374ac8bd496f6fa6f4c55ffd207bd30bd50075;p=gnome-shell.git screenShield: focus login screen after lifting shield This commit ensures the login screen gets focused after the screen shield is raised. The code affects the unlock screen as well, but it's less important since the unlock screen gets destroyed and recreated each time the curtain moves, so it has an opportunity to take focus on its own. https://bugzilla.gnome.org/show_bug.cgi?id=708105 --- diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index 6c1bc5e7a..1c1dca6cf 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -919,6 +919,9 @@ const ScreenShield = new Lang.Class({ this._lockScreenState = MessageTray.State.HIDDEN; this._lockScreenGroup.hide(); + + this._dialog.actor.grab_key_focus(); + this._dialog.actor.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false); }, _hideLockScreen: function(animate, velocity) {